package com.book.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.book.dto.BookQueryRequest;
import com.book.entity.Book;

import java.util.List;
import java.util.Map;

public interface BookService extends IService<Book> {
    
    /**
     * 分页查询图书
     */
    IPage<Book> getBookPage(BookQueryRequest request);
    
    /**
     * 获取图书类别统计
     */
    List<Map<String, Object>> getCategoryStatistics();
    
    /**
     * 获取价格区间统计
     */
    List<Map<String, Object>> getPriceRangeStatistics();
} 